#!/bin/bash

## Files
CONFIG="$HOME/.config/wofi/config-wl"
STYLE="$HOME/.config/wofi/style-wl.css"
#COLORS="$HOME/.config/wofi/colors"

## Wofi Command
wofi_command="wofi --show dmenu \
			
			--conf ${CONFIG} --style ${STYLE} --color ${COLORS} \
			--width=300 --height=400 \
			--cache-file=/dev/null \
			--hide-scroll --no-actions \
			--define=matching=fuzzy"

menu(){
printf "1. ScreenNonRecord\n"
printf "2. DP-1\n" 
printf "3. HDMI-A-1\n" 
printf "4. DP-2\n" 
printf "5. ScreenNonShot\n" 
printf "6. DP-1-ScreenNonShot\n" 
printf "7. DP-2-ScreenNonShot\n"
printf "8. HDMI-A-1-ScreenNonShot\n"
}

main() {
choice=$(menu | ${wofi_command} | cut -d. -f1)
case $choice in
1)
    bash /home/anime/scripts/wl-record.sh
     ;;
2)
    bash /home/anime/scripts/DP-1-wl-record.sh  
    ;;

3) bash /home/anime/scripts/hdmi-wl-record.sh
    ;;

4) bash /home/anime/scripts/DP-2-wl-record.sh
     ;;
5) grim -g "$(slurp)" ~/ScreenNonShot/screen-"$(date +%s)".png 
     ;;
6) grim -o DP-1 ~/ScreenNonShot/screen-"$(date +%s)".png && notify-send ScreenShot
     ;;

7) grim -o DP-2 ~/ScreenNonShot/screen-"$(date +%s)".png && notify-send ScreenShot
     ;;

8) grim -o HDMI-A-1 ~/ScreenNonShot/screen-"$(date +%s)".png && notify-send ScreenShot
     ;;



esac
}

main
